<?php echo $this->Html->script(array('http://code.highcharts.com/highcharts.js'),array('inline' => false));?>
<?php echo $this->Html->script(array('http://code.highcharts.com/modules/exporting.js'),array('inline' => false));?>
<div id="container" style="min-width: 400px; height: 400px; margin: 0 auto">

</div>
<script type="text/javascript">
$(function ( x,  y) {
	x = 100;
	y = 10;
    var chart;
    $(document).ready(function() {
        chart = new Highcharts.Chart({
            chart: {
                renderTo: 'container',
                type: 'bar'
            },
            title: {
                text: 'Historic World Population by Region'
            },
            subtitle: {
                text: 'Source: Wikipedia.org'
            },
            xAxis: {
                categories: ['Africa', 'America', 'Asia', 'Europe', 'Oceania'],
                title: {
                    text: null
                }
            },
            yAxis: {
                min: 0,
                title: {
                    text: '',
                    align: 'high'
                },
                labels: {
                    overflow: 'justify'
                }
            },
            tooltip: {
                formatter: function() {
                    return ''+
                        this.series.name +': '+ this.y +' millions';
                }
            },
            plotOptions: {
                bar: {
                    dataLabels: {
                        enabled: true
                    }
                }
            },
            legend: {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'top',
                x: -100,
                y: 100,
                floating: true,
                borderWidth: 1,
                backgroundColor: '#FFFFFF',
                shadow: true
            },
            credits: {
                enabled: false
            },
            series: [{
                name: '1 sao',
                data: [x]
            }, {
                name: '2 sao',
                data: [y]
            },  {
                name: '3 sao',
                data: [133]
            }, {
                name: '4 sao',
                data: [133]
            },{
                name: '5 sao',
                data: [9]
            }]
        });
    });
    
});
		</script>